package com.fan.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fan.dao.MemberDao;
import com.fan.service.MemberService;
import com.sixth.entity.TbMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-04-18 15:12
 **/
@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberDao memberDao;
    @Override
    public TbMember findMemberId(String memberId) {
        QueryWrapper<TbMember> wapper = new QueryWrapper<>();
        wapper.eq("id",memberId);
        TbMember selectOne = memberDao.selectOne(wapper);
        return selectOne;
    }
}
